function [ fitResult ] = fitPoly( fType, dataValues )
% Fits a polynomal of specified degree to a set of data

[xData, yData] = prepareCurveData( dataValues(:, 1), dataValues(:, 2));

ft = fittype( fType );

[fitResult, gof] = fit( xData, yData, ft );


end

